package com.lixinxin.benbenlove.ui.screen

import android.content.Intent
import android.net.Uri
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.Surface
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.navigation.NavHostController
import kotlinx.coroutines.delay


@Composable
fun WelcomeScreen(navController:NavHostController) {


    Surface(Modifier.fillMaxSize()) {

        LaunchedEffect(key1 = "key1") {
            delay(2000)
            //navController.navigate("home")

            navController.navigate(Uri.parse("lixinxin://lixinxin.com/love"))

        }

        Box(
            modifier = Modifier
                .fillMaxSize()
                .background(Color.Green)) {

        }

    }
}